import { ipcMain } from 'electron'
import { IApp } from '../../types'

export default (row: IApp) => {
  ipcMain.on('close-color-extranction', () => {
    if (!row.mainWindow.isDestroyed()) row.mainWindow.close()
  })
}
